Matthias Clasen [Sun, 31 Dec 2017 17:54:42 +0000 (12:54 -0500)]
gtk-demo: Stop using ::delete-event
Matthias Clasen [Sun, 31 Dec 2017 17:52:54 +0000 (12:52 -0500)]
tests: Stop using the delete-event signal
We can use ::destroy in most cases.
Matthias Clasen [Sun, 31 Dec 2017 17:17:53 +0000 (12:17 -0500)]
treeview: Stop using gtk_true
Matthias Clasen [Sun, 31 Dec 2017 17:17:08 +0000 (12:17 -0500)]
doc tools: Stop using gtk_true
Matthias Clasen [Sun, 31 Dec 2017 16:43:08 +0000 (11:43 -0500)]
dialog: Stop using the ::delete-event signal
We can achieve the desired result with a class handler
and the ::hide-on-close property.
Matthias Clasen [Sun, 31 Dec 2017 16:42:42 +0000 (11:42 -0500)]
file chooser native: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 16:41:59 +0000 (11:41 -0500)]
file chooser button: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 16:41:09 +0000 (11:41 -0500)]
applicationwindow: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 16:40:42 +0000 (11:40 -0500)]
about dialog: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 16:40:00 +0000 (11:40 -0500)]
color button: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 15:43:01 +0000 (10:43 -0500)]
font button: Use GtkWindow::hide-on-close
Instead of the ::delete-event signal.
Matthias Clasen [Sun, 31 Dec 2017 15:42:10 +0000 (10:42 -0500)]
window: Add a hide-on-close property
This lets us avoid ::delete-event signal handlers for just
this purpose.
Piotr Drąg [Mon, 15 Jan 2018 21:19:28 +0000 (22:19 +0100)]
Update Polish translation
Matthias Clasen [Mon, 15 Jan 2018 13:01:54 +0000 (08:01 -0500)]
inspector: Avoid a critical
I forgot to initialized the text field when I added
it back.
Matthias Clasen [Mon, 15 Jan 2018 13:01:01 +0000 (08:01 -0500)]
vulkan: use GDK_DISPLAY_NOTE
Where we have a display, we should use the per-display logging.
Timm Bäder [Mon, 15 Jan 2018 10:02:37 +0000 (11:02 +0100)]
vulkan: Fix build
This was changed in
e151058dffbfd3b43798c2e6813eae9b952ba2d1 but
GDK_NOTE only takes 2 arguments.
Timm Bäder [Mon, 15 Jan 2018 09:57:25 +0000 (10:57 +0100)]
tests: Update gl outset shadow tests
The results are slightly different for these now.
Timm Bäder [Mon, 15 Jan 2018 09:55:40 +0000 (10:55 +0100)]
gl renderer: Render unblurred outset shadows differently
We don't need to draw anything to a texure for those.
Timm Bäder [Mon, 15 Jan 2018 00:40:06 +0000 (01:40 +0100)]
gskcairoblur: Don't apply y_scale twice
A version of
29f36fed085d51bad16ec0e3f7ba5085bf9f82e8 but for the blur
we use in gsk.
Matthias Clasen [Sun, 14 Jan 2018 22:03:28 +0000 (17:03 -0500)]
Update docs for debug cleanup
Drop mention of GDK_GL, GDK_VULKAN and GDK_RENDERING_MODE,
add docs for GSK_DEBUG and new debug keys that were added.
Matthias Clasen [Fri, 12 Jan 2018 04:55:27 +0000 (23:55 -0500)]
inspector: Some logging support
Add a way to toggle debug output on and off
from the inspector. For now, we don't add a
log viewer here, since that has the risk of
deadlock until we've the logging completely
separated by display, and also requires us
to install a log writer function, which
libraries are not supposed to do.
Matthias Clasen [Sun, 14 Jan 2018 21:07:12 +0000 (16:07 -0500)]
inspector: Turn off gsk debugging
We don't want debug spew from the renderer that
is used for the inspector window, so turn it off.
Matthias Clasen [Sun, 14 Jan 2018 21:06:25 +0000 (16:06 -0500)]
gsk: Add a setter for debug flags
We need to set the global flags, since these are picked
up initially by new renderers.
Matthias Clasen [Sun, 14 Jan 2018 20:11:33 +0000 (15:11 -0500)]
gsk: Reorganize env vars
Get rid of GSK_RENDERING_MODE and add the flags to GSK_DEBUG,
following the same pattern we use in gdk now.
Matthias Clasen [Sun, 14 Jan 2018 20:09:30 +0000 (15:09 -0500)]
gtk Use per-renderer flags for node names
We are moving to per-renderer flags, so lets check them here.
Matthias Clasen [Sun, 14 Jan 2018 14:52:52 +0000 (09:52 -0500)]
gsk: make logging per-renderer
Add a setter for per-renderer debug flags, and use
them where possible. Some places don't have easy access
to a renderer, so this is not complete.
Also, use g_message instead of g_print throughout.
Matthias Clasen [Sat, 13 Jan 2018 00:09:46 +0000 (19:09 -0500)]
gsk: Drop unused debug flags
We are not logging anything for transforms or rendernodes atm.
Matthias Clasen [Thu, 11 Jan 2018 19:17:01 +0000 (14:17 -0500)]
gsk: Clarify a debug message
We are printing a window type, not a display.
Matthias Clasen [Fri, 12 Jan 2018 12:40:38 +0000 (07:40 -0500)]
wayland: Use g_message for logging
g_printerr is not the best for this.
Matthias Clasen [Sat, 13 Jan 2018 01:38:26 +0000 (20:38 -0500)]
Drop the cairo-recording debug flag
It is not very useful. The cairo-image option on the
other hand is has been useful in tracking down problems
in the past, so we'll keep it.
Matthias Clasen [Sat, 13 Jan 2018 00:49:27 +0000 (19:49 -0500)]
Drop the gl-always debug option
This doesn't seem very useful.
Matthias Clasen [Fri, 12 Jan 2018 00:48:27 +0000 (19:48 -0500)]
Make gdk logging per-display
As far as possible, use per-display debug flags.
This will minimize the debug spew that we get from
the inspector if it is running on a separate display.
Matthias Clasen [Thu, 11 Jan 2018 13:53:57 +0000 (08:53 -0500)]
gdk: Reorganize env vars
Drop GDK_GL, GDK_VULKAN and GDK_RENDERING_MODE.
Merge the useful bits into GDK_DEBUG.
Drop unused debug flags (CURSOR).
Matthias Clasen [Sun, 14 Jan 2018 14:55:32 +0000 (09:55 -0500)]
Make geometry logging per-display
Use the new macro to do this.
Matthias Clasen [Sun, 14 Jan 2018 14:53:48 +0000 (09:53 -0500)]
icon theme: Make logging per-display
As far as possible, for now. This needs some more
work to cover all locations.
Matthias Clasen [Sun, 14 Jan 2018 14:54:45 +0000 (09:54 -0500)]
gtk: add a per-display log macro
This makes the conversion easier.
Matthias Clasen [Fri, 12 Jan 2018 02:43:01 +0000 (21:43 -0500)]
Add a display property to keymaps
This is a general pattern we want to follow for all
objects in GDK. Also add a getter.
Piotr Drąg [Sun, 14 Jan 2018 19:53:04 +0000 (20:53 +0100)]
Update Polish translation
Daniel Boles [Sat, 13 Jan 2018 20:03:37 +0000 (20:03 +0000)]
GdkMonitor: Fix link to nonexistent Display method
There is no gdk_display_get_monitors(). Instead, we have to use
gdk_display_get_n_monitors() and gdk_display_get_monitor(int).
Daniel Boles [Fri, 12 Jan 2018 22:56:11 +0000 (22:56 +0000)]
HeaderBar: Explain use in conjunction w/ GtkWindow
After hinting how good GtkHeaderBar is for GtkWindow, let’s link to
the latter and indicate how users can make the two work together.
Daniel Boles [Fri, 12 Jan 2018 21:26:36 +0000 (21:26 +0000)]
Window: Mention GtkHeaderBar in set_titlebar() doc
This is the typical thing passed here and what most users want, so we
should mention it here, rather than requiring users to figure it out.
Daniel Boles [Fri, 12 Jan 2018 21:22:11 +0000 (21:22 +0000)]
Window: Clarify resize() doc about titlebar widget
Clarify the reference to HeaderBar, as it applies to any custom title
widget; HeaderBar is only the most common one used. Also, fix a typo.
Timm Bäder [Sat, 13 Jan 2018 09:38:13 +0000 (10:38 +0100)]
tooltip: Fix tooltip positions
Since gtk_widget_get_allocation doesn't return x/y values relative to
the GdkWindow anymore, we need to manually translate the widget
coordinates here.
Timm Bäder [Sat, 13 Jan 2018 08:28:18 +0000 (09:28 +0100)]
tooltip: Remove some unused members
Timm Bäder [Sat, 13 Jan 2018 08:26:13 +0000 (09:26 +0100)]
tooltip: Remove some unused includes
Timm Bäder [Sat, 13 Jan 2018 07:35:39 +0000 (08:35 +0100)]
tooltip: Remove custom picking code
Just use gtk_widget_pick here for now. This also makes tooltips of
widgets work which are not inside a container.
Timm Bäder [Sat, 13 Jan 2018 09:17:21 +0000 (10:17 +0100)]
window: Remove a resize grip mention from the docs
Timm Bäder [Sat, 13 Jan 2018 06:39:54 +0000 (07:39 +0100)]
adwaita: Regenerate proper CSS
Timm Bäder [Fri, 12 Jan 2018 21:31:11 +0000 (22:31 +0100)]
tooltip: Remove excessive padding
tooltips support padding now, just like everthing else.
Timm Bäder [Fri, 12 Jan 2018 21:22:51 +0000 (22:22 +0100)]
window: Fix tooltip allocation
Using get_preferred_size here does not work since it computes the
minimum height for the minimum width, but we want to know the minimum
height for the current width.
Timm Bäder [Fri, 12 Jan 2018 19:30:32 +0000 (20:30 +0100)]
tooltip: Fold a function into its only caller
Timm Bäder [Fri, 12 Jan 2018 15:05:45 +0000 (16:05 +0100)]
gdk: Remove unused GdkStatus enum
Timm Bäder [Thu, 11 Jan 2018 10:58:05 +0000 (11:58 +0100)]
main: Set event user data earlier
event_widget is not modified anymore after the assignment from
handle_pointing event and we need the event's user data set for the
_gtk_window_check_handle_wm_event call.
Matthias Clasen [Fri, 12 Jan 2018 02:45:32 +0000 (21:45 -0500)]
x11: Only set the keymap display once
Not necessary to do this more than once.
Matthias Clasen [Fri, 12 Jan 2018 02:44:49 +0000 (21:44 -0500)]
wayland: Set display on keymaps
This was forgotten so far: The display of keymaps
was NULL.
Matthias Clasen [Thu, 11 Jan 2018 00:06:45 +0000 (19:06 -0500)]
Split NEWS
Split the NEWS file at the major release boundaries.
Matthias Clasen [Wed, 10 Jan 2018 21:43:17 +0000 (16:43 -0500)]
docs: Mention textures in the GtkImage docs
This is now the preferred way to load images.
Timm Bäder [Wed, 10 Jan 2018 15:01:37 +0000 (16:01 +0100)]
scrolledwindow: Remove workarounds
Instead of making sure here that the scrollbars are the last children,
just add the bin child as first one and keep the scrollbars last.
Timm Bäder [Wed, 10 Jan 2018 13:41:29 +0000 (14:41 +0100)]
magnifier: gtk_snapshot_finish may return NULL
Matthias Clasen [Wed, 10 Jan 2018 12:35:46 +0000 (07:35 -0500)]
Quiet a compiler warning
Avoid this warning the other way, without bumping the libvulkan
dependency.
Matthias Clasen [Wed, 10 Jan 2018 12:34:36 +0000 (07:34 -0500)]
Revert "Quiet a compiler warning"
This reverts commit
888f289114756daeb80591afd48496fce1d63e8d.
Timm Bäder [Wed, 10 Jan 2018 10:02:10 +0000 (11:02 +0100)]
entry: Fix text clipping
Clipping the text to the entire widget allocation is wrong if there are
icons involved.
Timm Bäder [Wed, 10 Jan 2018 09:49:13 +0000 (10:49 +0100)]
entry: Fix get_text_allocation
These should be reported in GtkEntry coordinates, so relative to the
entry's origin. This fixes entrys with top/bottom padding applied.
Timm Bäder [Wed, 10 Jan 2018 09:10:11 +0000 (10:10 +0100)]
adwaita: Add some spacing to the scale value
So the slider does not overlap the value label. Since the value label is
allocated at the widget edge in gtk3, the correct fix here would
probably be to remove the 12px padding we apply to the entire scale and
instead apply it only to the trough.
Руслан Ижбулатов [Mon, 11 Dec 2017 07:39:08 +0000 (07:39 +0000)]
GDK W32: Remove non-managed DnD code
All DnD is now managed in GDK.
This commit also rearranges some code in _gdk_win32_window_drag_begin().
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Руслан Ижбулатов [Mon, 11 Dec 2017 07:37:03 +0000 (07:37 +0000)]
GDK W32: stop using the OWNERCHANGE event
It was removed completely. For now just comment out the code that used to emit it.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Timm Bäder [Wed, 10 Jan 2018 08:29:45 +0000 (09:29 +0100)]
adwaita: Fix scale styling for latest changes
Timm Bäder [Wed, 10 Jan 2018 08:29:05 +0000 (09:29 +0100)]
scale: Allocate marks widget along the trough
Timm Bäder [Tue, 9 Jan 2018 07:23:36 +0000 (08:23 +0100)]
testheightforwidth: Remove "vertical labels" test
This was testing lables with the angle property set, which doesn't exist
anymore.
Timm Bäder [Tue, 9 Jan 2018 05:12:46 +0000 (06:12 +0100)]
renderbackground: Avoid excess css value lookups
We iterate over all background layers twice, so only lookup blend mode
vlaues once.
Timm Bäder [Tue, 9 Jan 2018 05:00:57 +0000 (06:00 +0100)]
renderbackground: Add some constness
Timm Bäder [Tue, 9 Jan 2018 04:59:19 +0000 (05:59 +0100)]
renderbackground: Pull out a gdk_rgba_is_clear check
We only call snapshot_color once, and this way it's clearer that nothing
will happen for a clear color from the caller side.
Timm Bäder [Mon, 8 Jan 2018 21:00:57 +0000 (22:00 +0100)]
GdkDrawingContext: Add missing nullable annotation
Timm Bäder [Mon, 8 Jan 2018 20:46:16 +0000 (21:46 +0100)]
gl renderer: Sprinkle some const around
Timm Bäder [Mon, 8 Jan 2018 20:30:10 +0000 (21:30 +0100)]
widget: Refine docs a bit
Matthias Clasen [Wed, 10 Jan 2018 05:14:10 +0000 (00:14 -0500)]
Document the new GDK_VULKAN_DEVICE envvar
Best to document them while they're fresh.
Matthias Clasen [Wed, 10 Jan 2018 05:11:25 +0000 (00:11 -0500)]
Document the GDK_VULKAN env var
This was not documented at all yet.
Matthias Clasen [Wed, 10 Jan 2018 05:09:25 +0000 (00:09 -0500)]
Add missing debug keys to the docs
Several values for GDK_DEBUG were missing from the docs.
Matthias Clasen [Wed, 10 Jan 2018 05:02:23 +0000 (00:02 -0500)]
Drop unused GDK_GL values
And document the existing ones.
Matthias Clasen [Wed, 10 Jan 2018 04:16:30 +0000 (23:16 -0500)]
Drop unused debug keys
The multihead, xim and xinerama keys do nothing anymore.
Matthias Clasen [Wed, 10 Jan 2018 04:15:33 +0000 (23:15 -0500)]
Drop no-longer-existing debug keys from the docs
There is no draw or nogl value for GDK_DEBUG.
Matthias Clasen [Wed, 10 Jan 2018 04:07:08 +0000 (23:07 -0500)]
Drop another unused debug value
GTK_DEBUG_MULTIHEAD is unused as well.
Matthias Clasen [Wed, 10 Jan 2018 03:56:05 +0000 (22:56 -0500)]
Remove an unused debug value
GTK_DEBUG_MISC is not used at all. Drop it.
Matthias Clasen [Wed, 10 Jan 2018 01:40:47 +0000 (20:40 -0500)]
Docs: Drop section on commandline arguments
We no longer do that.
Matthias Clasen [Wed, 10 Jan 2018 01:33:04 +0000 (20:33 -0500)]
vulkan: Add a way to specify a device
We should be smarter in picking a good device eventually,
but for now, we just allow to explicitly choose one. To
see a list of all devices, use GDK_VULKAN_DEVICE=list
To specify which device to use, use GDK_VULKAN_DEVICE=<number>
Matthias Clasen [Tue, 9 Jan 2018 22:48:51 +0000 (17:48 -0500)]
Make size request warnings more useful
Print the css name of the widget in question, so we have
a chance of knowing that this is caused by the marks, not
by the slider.
Matthias Clasen [Tue, 9 Jan 2018 22:20:44 +0000 (17:20 -0500)]
Quiet a compiler warning
Vulkan grew a new error code.
Matthias Clasen [Tue, 9 Jan 2018 22:20:23 +0000 (17:20 -0500)]
Fix file chooser
Now that the places sidebar is private, we need to
ensure the type is known.
Matthias Clasen [Mon, 8 Jan 2018 19:37:45 +0000 (14:37 -0500)]
Drop GtkPlacesSidebar from public API
This is a bit of filechooser internals that gets shared with
nautilus, which is fine, but it shouldn't be part of our
public API. There are no other users than nautilus.
Timm Bäder [Mon, 8 Jan 2018 17:59:01 +0000 (18:59 +0100)]
gl renderer: Fix shaders for gles
Remove uniform initializers, add casts to float, etc.
Timm Bäder [Mon, 8 Jan 2018 17:36:48 +0000 (18:36 +0100)]
gl: Fix copy&paste error in blur shader
Timm Bäder [Mon, 8 Jan 2018 17:10:02 +0000 (18:10 +0100)]
inspector: Stop adding event controllers to the object tree
There's a dedicated "Gesture" page for all the gestures.
Sveinn í Felli [Mon, 8 Jan 2018 17:47:11 +0000 (17:47 +0000)]
Update Icelandic translation
(cherry picked from commit
d96a7c9e87576850992e1b90af803bd18878103f)
Timm Bäder [Mon, 8 Jan 2018 16:37:35 +0000 (17:37 +0100)]
adwaita: Uncomment accidentally commented lines
The result looks wrong but the css looks right.
Timm Bäder [Mon, 8 Jan 2018 15:36:44 +0000 (16:36 +0100)]
treeview: Stop rendering focus outline
This is done on a widget-level via css these days.
Timm Bäder [Sun, 7 Jan 2018 10:55:40 +0000 (11:55 +0100)]
widget: Fix css padding debug drawing
Timm Bäder [Sat, 6 Jan 2018 12:02:31 +0000 (13:02 +0100)]
gl renderer: Bring back hexbox drawing
Timm Bäder [Fri, 5 Jan 2018 17:14:51 +0000 (18:14 +0100)]
gl renderer: Use alpha uniform in inset shadow shader
Matthias Clasen [Sun, 7 Jan 2018 17:42:27 +0000 (12:42 -0500)]
toolbutton: Fix off-center icons
When the toolbar style is both-horiz, and the item
is not important, we were not centering the icon in the
same way as in gtk3. The reason is that we overlooked
the expand child property being set to TRUE in this case.
Daniel Boles [Sun, 7 Jan 2018 16:47:24 +0000 (16:47 +0000)]
ScrolledWindow: add() before remove() in snippet
We can't remove() a child widget that wasn't already add()ed, of course.